package net.adst.util;

import java.util.HashMap;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 * User: alekseipot
 * Date: 01.11.12
 * Time: 5:49
 * To change this template use File | Settings | File Templates.
 */
public class DataManager {
    public static Map<String, Object> map;

    public static void setObject(String name, Object object) {
        if (map == null) {
            map = new HashMap<String, Object>();
        }
        map.put(name, object);
    }

    public static Object getObject(String name) {
        return map.get(name);
    }
}